package com.kaifamiao.ajax.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.kaifamiao.ajax.utils.LongToStringSerializer;

import java.time.LocalDate;

public class Student {

    @JSONField(serializeUsing = LongToStringSerializer.class)
    private Long id;
    private String name;
    private String gender;
    private LocalDate birthdate;
    private String hometown;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public LocalDate getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(LocalDate birthdate) {
        this.birthdate = birthdate;
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = hometown;
    }
}
